package com.hscm.boss.common.enums;

/**
 * 自定义的应答码值
 */
public enum ResponseCode {
    OK(1000,"成功！"),
    UNKNOWN(1001,"请稍后重试！"),
    REQUEST_PARMA_ERR(1002,"请求参数错误"),
    OPERATOR_LOGIN_NAME_PWD(2000,"操作员的登录名称和密码输入错误！"),

    OPERATOR_LOGIN_NAME_PWD_1(2001,"操作员的登录名称和密码输入错误！"),
    LOGIN_SAVE_TOKEN_FAIL(2002,"登录失败，请稍后重试！"),
    LOGIN_TOKEN_INVALID(2003,"登录过期，请重新登录！"),

   USER_LOGIN_NAME_EXISTS(3000,"您的登录名称重复，请更换其他"),
   USER_NOT_EXISTS(3001,"商户不存在"),
    PAYMENT_CODE_EXISTS(4000,"支付产品的编码已经存在"),
    PAYMENT_NAME_EXISTS(4001,"支付产品的名称已经存在"),

    PAYMENT_CONFIG_EXISTS(4002,"支付产品已经包含此支付的方式或者类型"),
    PAYMENT_PRODUCT_NOT_EXISTS(4003,"支付产品不可用"),
    PAYMENT_USER_PRODUCT_EXISTS(4004,"商户已经配置过次支付产品"),
    PAYMENT_USER_PAYINFO_NONE(4005,"你的第三方支付缺少配置信息"),
    PAYMENT_PRODUCT_PAYWAY_NONE(4006,"支付产品无支付方式")


    ;


    ResponseCode(int number, String msg) {
        this.number = number;
        this.msg = msg;
    }

    private int  number;
    private String msg;

    public int getNumber() {
        return number;
    }

    public String getMsg() {
        return msg;
    }
}
